package yunhe.entity;

public class AdminInfo {
	private int anId;
	private String naName;
	private int nState;
	public AdminInfo(String nuName, int nState,int anId) {
		this.naName = nuName;
		this.nState = nState;
		this.anId=anId;
	}
	public int getAnId() {
		return anId;
	}
	public void setAnId(int anId) {
		this.anId = anId;
	}
	public AdminInfo(){}
	
	
	public String getnaName() {
		return naName;
	}
	public void setnaName(String nuName) {
		this.naName = nuName;
	}
	
	public String getnStateStr() {
		if(nState==0){
			return "管理员";
		}
		else{
			return "超级管理员";
		}
	}
	
	public int getnState() {
		return nState;
	}
	public void setnState(int nState) {
		this.nState = nState;
	}
}
